home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
utility
/
alert10.zip
/
ALERT.H
< prev
next >
Wrap
Text File
|
1994-03-02
|
1KB
|
41 lines
#define GR_ERROR 10
#define SETUP_COLOR LIGHTBLUE
#define LINE_BEGINNING 20
#define MAXCYCLECOUNT 15
#define LINE1HT 8
#define LINE2HT 5
#define MAXYHT 400
#define DELAY 1600
#define DELTA_X 140
#define DELTA_Y 33
#define PIXEL_COLOR YELLOW
#define HEADS_OR_TAILS 2
#define RANDOM 3
//when to dial ( 3 out of 15? )
#define DIALPHONE 11
//Keypress to exit
#define EXITVALUE '}'
#define WRITE_1ST_LINE write_text( LINE_BEGINNING, y_ht, LINE1HT, txt1 )
#define WRITE_2ND_LINE write_text( LINE_BEGINNING + DELTA_X, y_ht + DELTA_Y, LINE2HT, txt2 )
#define ERASE_LINE1 setcolor( getbkcolor() ); WRITE_1ST_LINE
#define ERASE_LINE2 setcolor( getbkcolor() ); WRITE_2ND_LINE
#define WRITE_LINE1 setcolor( line1color ); WRITE_1ST_LINE
#define WRITE_LINE2 setcolor( LIGHTMAGENTA ); WRITE_2ND_LINE
const char Msg1[] = "Intrusion Alert!",
Msg2[] = "CALLING POLICE";
typedef enum { OFF, ON } FLAGS;
FLAGS SoundFlag;
/********************************prototypes*********************************/
void graphics_setup( int background_color );
void write_text( int x_coord, int y_coord, int type_size, char* text );
void FlashCycle();